package practice.练习CopyOnWriteArraySet;

import java.util.concurrent.CopyOnWriteArraySet;

public class MyCopyOnWriteArraySet {
    public static void main(String[] args) {
        CopyOnWriteArraySet<String> set = new CopyOnWriteArraySet<>();
        set.add("shibixiu");
        set.add("zhangbixiu");
        set.add("libixiu");
        set.add("zhaobixiu");
        set.forEach((s) -> {
            System.out.println(s);
        });
    }
}
